<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$page.title} 我是买家</title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Sun, 6 Mar 2005 01:00:00 GMT" />
<meta name="keywords" content="{$page.tags}" />
<meta name="description" content="{$page.desc}" />
<script type="text/javascript" src="{&js}/jquery-1.4.2.min.js"></script>

<script type="text/javascript" src="{&js}/common.js"></script>
<script type="text/javascript" src="{&js}/validity.js"></script>
<script type="text/javascript" src="{&js}/jquery.colorbox-min.js"></script>
<link rel="shortcut icon" href="{&img}/favicon.ico"  type="image/x-icon" />
<link href="{&css}/wsmj.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
$(document).ready(function(){
	$(".linkcss").colorbox({width:"980px", height:"550px", iframe:true});
});
</script>


<if condition="ACTION_NAME eq 'goods'">
<script type="text/javascript" src="{&js}/areaArr2.js"></script>
<script type="text/javascript" src="{&js}/jquery.showArea.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#perNative").click(showArea);
});
</script>
</if>

<if condition="ACTION_NAME eq 'showtopic'">
<script type="text/javascript">
$(document).ready(function(){
	
});
</script>
</if>

<if condition="(ACTION_NAME eq 'showurl') OR (ACTION_NAME eq 'showgoods') OR (ACTION_NAME eq 'showbrand')">
<script type="text/javascript" src="{&js}/jquery.lightbox-0.5.min.js"></script>
<script type="text/javascript">
$(function() {
    $('#gallery a').lightBox();
});
function usaction(action,gid)
{
	var btnaction = "#" +action;
	
	$("#result").hide();
	var btnnow =parseInt($(btnaction).html());
	
	$.ajax({
		   type: "POST",
		   url: '__APP__/deal/relmodel',
		   data: "id="+gid+"&action="+action+"&module={*ACTION_NAME}",
		   success: 
		   function(msg){
			 var obj = eval( "(" + msg + ")" );
			 
			 $("#result").html(obj.data);
			 
				 $("#result").slideDown("slow",function(){
					 if(obj.info)
					 {
					 //复制下来的时候 IE 会保存原来的CSS 而FF CHROME也会复制CSS
					 $(btnaction+"list").append($("#userico").clone());
					 //操作成功完了+1
					 $(btnaction).html(btnnow + 1 );
					 }
				 });
			 
		   }
		});
	
}

</script>
</if>

<if condition="ACTION_NAME eq 'space'">
<script type="text/javascript">
function dofocus(gid)
{
	
	$("#focusid").hide();
	$.ajax({
		   type: "POST",
		   url: '__APP__/deal/relmodel',
		   data: "id="+gid+"&action=focus&module=showuser",
		   success: 
		   function(msg){
			 var obj = eval( "(" + msg + ")" );
			 
			 $("#focusid").html(obj.data);
			 
				 $("#focusid").slideDown("slow",function(){
					 if(obj.info)
					 {
						 $("#myfriendlist").append($("#userico").clone());
						 $("#btnfocus").hide();
					 }
				 });
			 
		   }
		});
	
}
</script>
</if>

</head>
<body>

<div class="top-nav">
<div class="bd">
<div class="top-nav-info"><a href="__ROOT__/index.php/admin/"
	target="_blank" class="bn-radio">后台</a> <a target="_blank"
	href="__ROOT__/tools.php" class="bn-radio">生成器</a> | <empty
	name="uinfo['id']"> 欢迎来到我是买家 <a href="__APP__/signin"
	class="bn-radio" title="注册">注册</a> <a href="__APP__/login" class="bn-radio">登陆</a>
<else /> <a href="__APP__/people/space/id/{$uinfo.id}" class="bn-radio">我的主页</a>
<a href="__APP__/mail/">消息<php>echo haveMail();</php></a> <a
	href="__APP__/account/setting/">{$uinfo.enname}的设置</a> <a
	href="__APP__/login/logout">退出</a> </empty></div>
</div>
</div>

<div id="wrapper">

<div id="header">
<div class="site-nav">
<div class="site-nav-logo pro-logo"><a href="__APP__" title="{%sitename}"> <img
	src="{&img}/nav/logo.gif" alt="我是买家-买家分享社区"></a></div>
<form id="grobleform" name="ssform" method="post" action="__APP__/search/dosearch">
<div id="searbar" class="nav-srh"><span> <input
	name="search_text" title="开始搜索" type="text" size="22"
	maxlength="60" value="" id="good_search" autocomplete="off"
	class="inputline"> <input type="submit" value="搜 搜"
	class="btn-search"></span></div>
</form>
<div class="site-nav-items">
<ul>
	<li><a href="__APP__">首页</a></li>
	<li><a href="__APP__/people/">大家</a></li>
	<li><a href="__APP__/together/">一起</a></li>
	<li><a href="__APP__/gogo/">逛逛</a></li>
	<li><a href="__APP__/show/">晒晒</a></li>
	<li><a href="__APP__/group">侃侃</a></li>
</ul>
</div>
<empty name="uinfo['id']"> <div class="user"><a id="userico" 
	href="__APP__/"><img
	src="{&img}/default/userdefault.gif" title="我是买家"
	alt="我是买家-买家体验社区"  /></a></div>  <else /> <div class="user">  <a id="userico"
	href="__APP__/people/space/id/{$uinfo.id}"><img
	src="{$uinfo.image_id|getImage=###,'m_'}" title="{$uinfo.enname}"
	alt="{$uinfo.enname}"  /></a> </div>
	</empty></div>
</div>

<div id="content">
<h1>{$page.title}</h1>
<div class="grid-16-8 clearfix">